import 'package:flutter/material.dart';
import 'package:flutter_web/page/left_content_widget.dart';

import 'right_content_widget.dart';

class ContentWidget extends StatefulWidget {
  const ContentWidget({Key key}) : super(key: key);

  @override
  _ContentWidgetState createState() => _ContentWidgetState();
}

class _ContentWidgetState extends State<ContentWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Row(
        children: [
          // 左侧文章列表
          Expanded(
            flex: 2,
            child: LeftContentWidget(),
          ),
          // 右侧的分类列表
          Expanded(
            flex: 1,
            child: RightContentWidget(),
          ),
        ],
      ),
    );
  }
}
